<template>
  <div class="label-title-content">
    <img
      class="icon"
      v-if="props.showImg"
      src="../assets/images/lableIcon.png"
    />
    <span class="text-label">{{ props.text }}</span>
  </div>
</template>
<script  setup>
const props = defineProps({
  text: String,
  showImg: {
    type: Boolean,
    default: true,
  },
});
</script>
<style lang="scss" scoped>
.label-title-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  .icon {
    width: 16px;
    height: 18px;
    margin-right: 8px;
  }
  .text-label {
    font-family: YouSheBiaoTiHei;
    font-size: 18px;
    color: #333333;
    line-height: 23px;
    text-align: left;
    font-style: normal;
  }
}
</style>
